package com.sxtyxt.online;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	public void btnClick(View view) {
		Dialog dialog = new android.app.AlertDialog.Builder(this).setMessage("message").setTitle("title")
				.setPositiveButton("确定", null).setNegativeButton("取消", null).create();
		dialog.show();
	}

}
